package inc.zhugastrov.sellerform;

import javax.persistence.Embeddable;

@Embeddable
public class OrderedItems extends Basket implements Product {

	private Long id;
	private String name;
	private String brand;
	private String about;
	private Double price;
	private int amountInStore;

	public OrderedItems() {
	}

	public OrderedItems(Item item) {
		setId(item.getId());
		setName(item.getName());
		setBrand(item.getBrand());
		setAbout(item.getAbout());
		setPrice(item.getPrice());
		setAmountInStore(item.getAmountInStore());
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getAbout() {
		return about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public int getAmountInStore() {
		return amountInStore;
	}

	public void setAmountInStore(int amountInStore) {
		this.amountInStore = amountInStore;
	}

}
